import useAxios from "@/hooks/useAxios"

function add(data){
  return useAxios('/shop-api/favorites/add',{
    method:"POST",
    data,
    reqAuth:true
  })
}
function list(){
  return useAxios('/shop-api/favorites/list',{
    method:"POST",
    reqAuth:true,
    //cache:true
  })
}
function del(ids){
  return useAxios('/shop-api/favorites/delete',{
    method:"POST",
    data:{
      ids
    },
    reqAuth:true
  })
}
function has(data){
  return useAxios('/shop-api/favorites/has',{
    method:"POST",
    data,
    reqAuth:true
  })
}
export {add,list,del,has}